package cn.trda.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import cn.trda.pojo.Customs;

public interface AsCustomsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Customs record);

    int insertSelective(Customs record);

    Customs selectByPrimaryKey(Long id);
    /**
     * 查找指定代理商的模糊查询分页列表
     * @param agentid
     * @param customname
     * @param start
     * @param end
     * @return
     */
    List<Customs> selectCustomerList(@Param("agentid") Long agentid,@Param("customname")String customname,@Param("start") Integer start,@Param("end") Integer end);
   
    /**
     * 查找数量
     * @param customname
     * @return
     */
    int selectCount(@Param("agentid") Long agentid,@Param("customname") String customname);
    
    int updateByPrimaryKeySelective(Customs record);

    int updateByPrimaryKeyWithBLOBs(Customs record);

    int updateByPrimaryKey(Customs record);
    
    @Select(value="select * from as_customs where customname=#{value}")
    Customs	selectByName(String name);
}